home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / border / source / dabe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-19  |  3.7 KB  |  157 lines

  1. #include    <stdio.h>
  2.  
  3. #define ESC            0x1B
  4. #define SPACE        0x20
  5. #define CR            0x0D
  6. #define BS            0x08
  7. #define LF            0x0A
  8. #define    CR            0x0D
  9. #define INS          0x12
  10. #define DEL          0x7F
  11. #define RIGHT        0x1C
  12. #define LEFT        0x1D
  13. #define UP            0x1E
  14. #define DOWN        0x1F
  15. #define ON            0x01
  16. #define OFF            0x00
  17. #define THRU        0x00
  18. #define BREAK          -1
  19. #define Rbotton          -2
  20. #define Wbotton          -3
  21. #define page0        0x00
  22. #define page1        0x01
  23. #define NEW            0x01
  24. #define SAVE        0x02
  25. #define RESTART        0x03
  26. #define SOUND_ON    0x01
  27. #define SOUND_OFF    0x02
  28. #define END            0x01
  29.  
  30. #define iskanji(c)   ((0x81 <= c && c <= 0x9f) || (0xe0 <= c && c <= 0xfc))
  31. #define iskanji2(c)  ((0x40 <= c && c <= 0x7e) || (0x80 <= c && c <= 0xfc))
  32.  
  33. /* 背景色 */
  34. #define BAKCOL    0x05  
  35.  
  36. /* winbox色 */
  37. #define BOXCOL    0x07  
  38. #define UBXCOL    0x08 /* 0x0F */
  39. #define DBXCOL    0x08 /* 0x08 */
  40.  
  41. /* wintitle色 */
  42. #define TITCOL    0x08  
  43. #define UTICOL    0x0F /* 0x07 */
  44. #define DTICOL    0x08
  45.  
  46. /* winkom色 */
  47. #define KOMCOL    0x07  
  48. #define UKOCOL    0x08 /* 0x0F */
  49. #define DKOCOL    0x08
  50. #define RKOCOL    0x05 /* winkom反転色 */
  51.  
  52. /* error時のwintitle色 */
  53. #define ETICOL    0x0A
  54. #define EUTCOL    0x0F
  55. #define EDTCOL    0x01
  56.  
  57. /* 文字色 */
  58. #define CHRCOL    0x0F
  59. #define TCHCOL    0x0F
  60. #define ECHCOL    0x0F
  61.  
  62. /* oak使用時の色 */
  63. #define BOAKCOL    0x05
  64. #define ROAKCOL    0x07
  65. #define COAKCOL    0x0F
  66.  
  67.  
  68.  
  69. /* dabe.c */
  70.  
  71. void    init();  
  72. void    end();
  73. void    main2();
  74. short      start();
  75. void    getdrive();
  76. void    getpath();
  77. void    look();
  78. void    dkensaku( char * );
  79. short    dtuika( char * );
  80. void    dsyusei( char *, short, char * );
  81. short    dsakujyo( char *, short );
  82. void    fshinki();
  83. void    fsakujyo();
  84. char    *selfile();
  85. short     selmode( FILE *fp, char * );
  86. short     selmode2( FILE *fp, char *, short );
  87. short    selmode_k( FILE *, char *, short, short * );
  88. short     selmode_k2(FILE *, char *, short );
  89. short    oakn(short, short, short, short, char *);
  90. short    oaks(short, short, short, short, char *);
  91. short    put_oakcur();
  92. void    put_roll_carddata( short );    
  93. void    maketitle( char *, char *, char * );
  94. void    makeNo( short, char * );
  95.  
  96.  
  97. /* dabe_mos.c */
  98.  
  99. short    MOS_read(float, float, short, char *, short, short, short );
  100. void    mos_start();
  101. void    mos_end();
  102. short    mos_sub();
  103. short    MOS_loop();
  104. short     MOS_YesNo();
  105. void     cmwork( char * );
  106. void    putcur( int x, int y );
  107. void    getcurbak( int x, int y );
  108. void    putcurbak( int x, int y );
  109.  
  110.  
  111.  
  112. /* dabe_gra.c */
  113.  
  114. void    g_putchr(float, float, short, char *);
  115. short    g_putchr2(short, short, short, char *, short);
  116. void    g_winbox(short, short, short, short,  short, short, short); 
  117. void     g_boxfill(float, float, float, float, short);
  118. void     g_wintitle(float, float, float,  short, short, short, short, char *, short, short ); 
  119. void     g_winkom(float, float, float,  short, short, short, short, char *, short );
  120. void    g_under_bar( float, float, float, short, short );
  121. void    g_put_endicn( float, float );
  122. void    g_rput_endicn( float, float );
  123. void    g_put_nexticn( float, float );
  124. void    g_rput_nexticn( float, float );
  125. void    g_put_backicn( float, float );
  126. void    g_rput_backicn( float, float );
  127. void    g_put_msgicn( float, float );
  128. void    g_put_erricn( float, float );
  129. void    g_putbotton( short );
  130. void    put_komdata(char *, short);    
  131. void    put_carddata(char *, short);    
  132. void    putmessage( char * );
  133. void    puterror( char * );
  134. void    get_xy( short *, short * );
  135.  
  136.  
  137. /* dabe_fil.c*/
  138.  
  139. void    makepath( char * );
  140. void    makefilename( char *, char * );
  141. FILE    *fopen_crd( char *, char* );
  142. FILE    *fopen_kom( char *, char* );
  143. void     fputx(char *, FILE *);
  144. char    *fgetx(char *, short, FILE *); 
  145.  
  146. /* dabe_snd.c */
  147. void    open_sound();
  148. void    error_sound();
  149. void    sound_off();
  150. void    msg_sound();
  151.  
  152. /* cons3.c*/
  153.  
  154. void    init_charmap();
  155. void    getstr( char * );
  156.  
  157.